import Layout from "@/layout";
import levels from "@/views/levels";

const globalRouter = {
  path: "/global/system/config",
  component: Layout,
  redirect: "noRedirect",
  name: "global",
  alwaysShow: true,
  meta: {
    title: "全局管理",
    abbre: "全局",
    icon: "left_menu_system",
    navigation: "/global",
    id: "407"
  },
  children: [
    {
      path: "/global/system/config",
      component: levels,
      name: "global_System",
      hidden: false,
      meta: {
        title: "系统配置",
        noCache: true,
        navigation: "/global/system/config",
        icon: "menu_big_data"
      },
      children: [
        {
          path: "/global/system/config",
          component: () => import("@/views/global/globalSystem_config"),
          name: "global_system_config",
          hidden: true,
          meta: {
            title: "学校信息",
            noCache: true,
            navigation: "/global/system/config",
            icon: "menu_big_data"
          }
        },
        {
          path: "/global/third",
          component: () => import("@/views/global/globalThird.vue"),
          name: "global_Third",
          hidden: true,
          meta: {
            title: "第三方配置",
            noCache: true,
            navigation: "/global/system/config",
            icon: "menu_big_data"
          }
        },
        // {
        //   path: "/global/system/print",
        //   component: () => import("@/views/global/globalSystem_print.vue"),
        //   name: "global_print",
        //   hidden: true,
        //   meta: {
        //     title: "打印配置",
        //     noCache: true,
        //     navigation: "/global/system/config",
        //     icon: "menu_big_data"
        //   }
        // },
        {
          path: "/global/system/printset/:id",
          component: () =>
            import("@/views/global/globalPrintSet/globalPrintSet.vue"),
          name: "global_print_set",
          hidden: true,
          meta: {
            title: "打印配置",
            noCache: true,
            navigation: "/global/system/config",
            icon: "menu_big_data",
            treeMenuHidden: true
          }
        }
      ]
    },
    {
      path: "/global/role",
      component: () => import("@/views/global/globalRole"),
      name: "global_role",
      hidden: false,
      meta: {
        title: "角色管理",
        noCache: false,
        navigation: "/global/role",
        icon: "menu_big_data"
      }
    },
    {
      path: "/global/admin",
      component: () => import("@/views/global/globalAdmin"),
      name: "global_Admin",
      hidden: false,
      meta: {
        title: "管理员",
        noCache: true,
        navigation: "/global/admin",
        icon: "menu_big_data"
      }
    },
    {
      path: "/global/grant/:id",
      component: () => import("@/views/global/globalGrant"),
      name: "global_grant",
      hidden: true,
      meta: {
        title: "授权",
        bread: "角色管理,授权",
        noCache: true,
        navigation: "/global/role",
        icon: "menu_big_data"
      }
    },
    // {
    //   path: "/global/release",
    //   component: () => import("@/views/global/globalRelease"),
    //   name: "global_release",
    //   hidden: false,
    //   meta: {
    //     title: "药残发布",
    //     noCache: true,
    //     navigation: "/global/release",
    //     icon: "menu_big_data"
    //   }
    // },
    {
      path: "/global/operation",
      component: () => import("@/views/global/globalOperation"),
      name: "global_operation",
      hidden: false,
      meta: {
        title: "操作日志",
        noCache: true,
        navigation: "/global/operation",
        icon: "menu_big_data"
      }
    },
    // {
    //   path: "/global/delivery",
    //   component: () => import("@/views/global/globalDelivery"),
    //   name: "global_delivery",
    //   hidden: false,
    //   meta: {
    //     title: "配送时间",
    //     noCache: true,
    //     navigation: "/global/delivery",
    //     icon: "menu_big_data"
    //   }
    // },
    // {
    //   path: "/global/recycle",
    //   component: () => import("@/views/global/globalRecycle"),
    //   name: "global_recycle",
    //   hidden: false,
    //   meta: {
    //     title: "回收站",
    //     noCache: true,
    //     navigation: "/global/recycle",
    //     icon: "menu_big_data"
    //   }
    // },
    // {
    //   path: "/global/init",
    //   component: () => import("@/views/global/globalinit"),
    //   name: "global_init",
    //   hidden: false,
    //   meta: {
    //     title: "系统还原",
    //     noCache: true,
    //     navigation: "/global/init",
    //     icon: "menu_big_data"
    //   }
    // },
    // {
    //   path: "/global/application",
    //   component: () => import("@/views/global/globalApplication"),
    //   name: "global_application",
    //   hidden: false,
    //   meta: {
    //     title: "应用中心",
    //     noCache: true,
    //     navigation: "/global/application",
    //     icon: "menu_big_data"
    //   }
    // },
  ]
};

export default globalRouter;
